<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/17
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<base href="/ks_manager/">
<style>
    body{
        font-size:12px;
    }
    .tab_detas{
        width:100%;
        margin:15px auto;
        min-width:860px;
    }
    .contdeta {
        width: 100%;
        border-collapse: collapse;
    }
    .contdeta td{
        padding-left:20px;
    }
    .contdeta tr, .contdeta td {
        border: 1px solid #C6C6C6;
        height:32px;
    }
    .contdeta .tab_tit {
        background-color: #E2DADB;
        height: 35px;
        text-align: center;
        font-size: 14px;
    }
    .contdeta td input{
        height:22px;
        border:1px solid #E2DADB;
        padding-left:3px;
    }

    .tab_Tips ul li{
        list-style-type:none;
        float:left;
        line-height:20px;
        padding-left:15px;
        color:#ff0000;
    }
    .tab_Tips ul{
        margin:0;
        padding:0;
    }
</style>
<body>
<div class="tab_detas">
    <table class="contdeta" cellpadding="0" cellspacing="0">
        <tbody>
        <tr class="tab_tit" style="">
            <td>税（费）种</td>
            <td>计算公式</td>
            <td>税率%</td>
            <td>税费</td>
        </tr>

        </tbody>
        <tbody id="taxDetail_list">

        </tbody>
        <script type="text/x-handlebars-template" id="taxDetail_list_tpl">
            {{#each this}}
            <tr >
                <td>{{CalculationFormulaName}}</td>
                <td>{{FormulaDes}}</td>
                <td>{{Rate}}</td>
                <td>{{CalculationValue}}</td>
            </tr>
            {{/each}}
        </script>
    </table>
</div>


</body>
<script type="text/javascript" src="static/js/base.min.js?_v=190102162154"></script>
<script type="text/javascript">
    requireJS(['constant', 'site', 'handlebars', 'public'], function (Constant, site, Handlebars, Public) {

        var list = <%=request.getParameter("list")%>

        var source = $("#taxDetail_list_tpl").html();
        var template = Handlebars.compile(source);
        var html = template(list)
        $('#taxDetail_list').html(html)

    })
</script>
